<extend name="Public:layout"/>
<block name="css">

</block>
<block name="js">
    <script type="text/javascript">
        var QINIU = $.parseJSON('{$qiniu|json_encode}');
    </script>
</block>
<block name="content">
    <div class="panel admin-panel">
        <div class="panel-head" id="add"><strong><span class="icon-pencil-square-o"></span>编辑站点</strong></div>
        <div style="height:30px;"></div>
        <div class="container-fluid">
            <form method="post" class="form-x ajax-submit" action="{:U('')}">
                <div class="row">
                    <div class="form-group col-lg-4 col-md-4">
                        <div class="input-group">
                            <div class="input-group-addon">站点名称</div>
                            <input type="text" class="form-control" value="{$info.website_name}" name="website_name" placeholder="请输入站点名称" data-validate="required:请输入站点名称">
                        </div>
                    </div>
                    <div class="form-group col-lg-4 col-md-4">
                        <div class="input-group">
                            <div class="input-group-addon">公司名称</div>
                            <input type="text" class="form-control" value="{$info.company}" name="company" placeholder="请输入公司名称" data-validate="required:请输入公司名称">
                        </div>
                    </div>
                </div>

                <div class="row">
                    <div class="form-group col-lg-4 col-md-4">
                        <div class="input-group">
                            <div class="input-group-addon">联系电话</div>
                            <input type="text" class="form-control" value="{$info.telphone}" name="telphone" placeholder="请输入联系电话" data-validate="required:请输入联系电话">
                        </div>
                    </div>
                    <div class="form-group col-lg-4 col-md-4">
                        <div class="input-group">
                            <div class="input-group-addon">联系地址</div>
                            <input type="text" class="form-control" value="{$info.address}" name="address" placeholder="请输入地址" data-validate="required:请输入地址">
                        </div>
                    </div>
                </div>

                <div class="row">
                    <div class="form-group col-lg-4 col-md-4">
                        <div class="input-group">
                            <div class="input-group-addon">邮箱地址</div>
                            <input type="text" class="form-control" value="{$info.email}" name="email" placeholder="请输入邮箱" data-validate="required:请输入邮箱">
                        </div>
                    </div>
                    <div class="form-group col-lg-4 col-md-4">
                        <div class="input-group">
                            <div class="input-group-addon">备案信息</div>
                            <input type="text" class="form-control" value="{$info.icp}" name="icp" placeholder="请输入ICP备案信息" data-validate="required:请输入ICP备案信息">
                        </div>
                    </div>
                </div>

                <div class="row">
                    <div class="form-group col-lg-4 col-md-4">
                        <div class="input-group">
                            <div class="input-group-addon">版权信息</div>
                            <input type="text" class="form-control" value="{$info.copyright}" name="copyright" placeholder="请输入版权信息" data-validate="required:请输入版权信息">
                        </div>
                    </div>
                </div>

                <div class="row">
                    <p class="bg-gray col-lg-8 col-md-8">SEO信息</p>
                </div>

                <div class="row">
                    <div class="form-group col-lg-4 col-md-4">
                        <div class="input-group">
                            <div class="input-group-addon">标题</div>
                            <input type="text" class="form-control" value="{$info.seo_title}" name="seo_title" placeholder="请输入SEO title" data-validate="required:请输入标题">
                        </div>
                    </div>
                    <div class="form-group col-lg-4 col-md-4">
                        <div class="input-group">
                            <div class="input-group-addon">描述</div>
                            <input type="text" class="form-control" value="{$info.seo_description}" name="seo_description" placeholder="请输入SEO description" data-validate="required:请输入描述">
                        </div>
                    </div>
                </div>

                <div class="row">
                    <div class="form-group col-lg-4 col-md-4">
                        <div class="input-group">
                            <div class="input-group-addon">关键词</div>
                            <input type="text" class="form-control" value="{$info.seo_keywords}" name="seo_keywords" placeholder="请输入SEO keyword" data-validate="required:请输入关键词">
                        </div>
                    </div>
                </div>

                <div class="row">
                    <p class="bg-gray col-lg-8 col-md-8">微博信息</p>
                </div>

                <div class="row">
                    <div class="form-group col-lg-4 col-md-4">
                        <div class="input-group">
                            <div class="input-group-addon">微博名称</div>
                            <input type="text" class="form-control" value="{$info.weibo_name}" name="weibo_name" placeholder="请输入微博名称" data-validate="required:请输入微博名称">
                        </div>
                    </div>
                    <div class="form-group col-lg-4 col-md-4">
                        <div class="input-group">
                            <div class="input-group-addon">微博链接</div>
                            <input type="text" class="form-control" value="{$info.weibo_url}" name="weibo_url" placeholder="请输入微博链接" data-validate="required:请输入微博链接">
                        </div>
                    </div>
                </div>

                <div class="row">
                    <div class="form-group col-lg-4 col-md-4">
                        <div class="col-lg-12 col-md-12">
                            <img src="{$info.weibo_qrcode}" class="preview-upload" style="width:100px;height:100px;background:#ccc;display:block;margin-bottom:10px;" alt="请上传图片">
                        </div>
                        <button type="button" class="btn btn-success upload">上传微博二维码</button>
                        <button type="button" class="btn btn-info show-upload" data-ext="image" data-input="input[name=weibo_qrcode]" data-preview=".preview-upload">已上传的图片</button>
                        <input type="hidden" class="form-control" name="weibo_qrcode" value="{$info.weibo_qrcode}">
                    </div>
                </div>

                <div class="form-group">
                    <div class="label">
                        <label></label>
                    </div>
                    <div class="field">
                        <button class="button bg-main icon-check-square-o" type="submit"> 提交</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</block>